{layout name="layout" /}

    <div class="row">
        <div class="col-xs-12">
         <div class="nav-tabs-custom">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">模型列表</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <div class="table-responsive">
                        <table id="staff" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>模型名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {php}$k=0;{/php}
                                {volist name="list" id='v'}
                                <tr>
                                    <td>{++$k}</td>
                                    <td>{$v.post_title}</td>
                                    <td><a href="{:url('/home/Posts/addPage','id='.$v['post_id'])}"><i class="fa fa-pencil green control"></i></a>&nbsp;<i class="fa fa-trash-o red control confirm-rst-url-btn" data-url="<?php echo url('delModule','id='.$v['post_id']);?>" data-info="您确定要删除当前模型吗？(无法撤销)"></i></td>
                                </tr>
                                {/volist}
                            </tbody>
                            <!-- tbody是必须的 -->
                        </table>
                         {$list->render()}
                    </div>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
<!-- /.content -->
{include file="public/base" /} {include file="public/edit" /} {include file="public/footer" /}
</body>
</html>
